<?php
namespace app\api\model;


class CustomerCase extends BaseModel
{
	protected $hidden = ['phone', 'status', 'img_id', 'type', 'create_time', 'update_time'];

	public function img()
	{
		return $this->belongsTo('Image', 'img_id', 'id');
	}

	public static function getCase()
	{
		$food = self::with('img')->where('status', '=', 1)->limit(3)->select();

		return $food;
	}
}